package heven.holt.eyepetizer.viewmodel

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import dagger.hilt.android.lifecycle.HiltViewModel
import heven.holt.eyepetizer.repository.MainPageRepository
import javax.inject.Inject

@HiltViewModel
class CommendViewModel @Inject constructor(
    mainPageRepository: MainPageRepository
) : ViewModel() {
    val flow = mainPageRepository.getHomePageRecommendPagingData().cachedIn(viewModelScope)
}